<body>
<div id="PC" style="display: block;">

    <div class="contentbg">
        <div class="content">
            <div class="left"></div>
            <div class="right">
                <h1>访问验证</h1>
                <p>别离开，为了更好的访问体验，请滑动滑块进行验证，通过后即可继续访问网页</p>
                <div id="nocaptcha" class="sm-pop-inner nc-container"><div class="nc_1_nocaptcha" id="nc_1_nocaptcha"><div id="nc_1_wrapper" class="nc_wrapper"><div id="nc_1_n1t" class="nc_scale"><div id="nc_1__bg" class="nc_bg" style="width: 0px;"></div><span id="nc_1_n1z" class="nc_iconfont btn_slide" aria-label="滑块" tabindex="0" role="button" style="left: 0px;"></span><div id="nc_1__scale_text" class="scale_text slidetounlock"><span class="nc-lang-cnt" data-nc-lang="SLIDE">请按住滑块，拖动到最右边</span></div></div></div></div></div>
            </div>
        </div>
    </div>
    <div id="_umfp" style="display:inline;width:1px;height:1px;overflow:hidden"></div>
</div>
<div id="H5" style="display: none;">
    <div class="waf-nc-h5-mask"></div>
    <div id="WAF_NC_H5_WRAPPER" class="waf-nc-h5-wrapper">
        <div class="waf-nc-h5-panel">
            <img class="waf-nc-h5-icon" src="//img.alicdn.com/imgextra/i1/O1CN01L12MaQ1ZwfYKk7Yrc_!!6000000003259-2-tps-900-594.png" alt="" height="132" width="200">
            <div class="waf-nc-h5-description">为了更好的访问体验，请滑动滑块进行验证</div>
        </div>
        <div id="h5_nocaptcha" class="nc-container" data-nc-idx="1"></div>
    </div>
</div>
<div style="margin-left:20px" id="traceid">TraceID: 76b20f6416947961190026193e4611</div>


<style type="text/css" class="nc-style">.sm-pop{position:absolute;background:#FFFFFF;border:1px solid #CFE2F6;z-index:10000;}.sm-pop-toplayer{position:fixed;background:#FAFAFA;top:0;right:0;bottom:0;left:0;z-index:100000;}.sm-pop-inner{position:absolute;width:100%;}.sm-pop-inner .qc-wrapper .qc-container{box-shadow:none;}.sm-pop-close{position:absolute;top:0;right:0;width:15px;height:15px;line-height:15px;text-align:center;background:url(https://img.alicdn.com/tfs/TB1z6LQmf6H8KJjy0FjXXaXepXa-14-14.png);cursor:pointer;}#sc{margin-left:100px;margin-top:200px;}.sm-btn-wrapper{position:relative;}.sm-txt{margin-left:20px;font-size:14px;vertical-align:middle;color:#3C3C3C;white-space:pre-wrap;}.sm-btn{line-height:42px;border:1px solid #dddddd;cursor:pointer;overflow:hidden;}#rectMask{overflow:hidden;position:absolute;top:0px;left:0px;}#sm-btn-bg{background-image:linear-gradient(0deg,#EDEDED,#ffffff);cursor:pointer;overflow:hidden;z-index:-1;position:absolute;top:1px;left:1px;}.sm-btn-default .sm-ico:hover{box-shadow:0 0 10px #00de76;background:rgba(0,222,118,.3);}.sm-btn-default:hover{-moz-box-shadow:0px 0px 8px #65F4B5;-webkit-box-shadow:0px 0px 8px #65F4B5;box-shadow:0px 0px 8px #65F4B5;}.sm-btn-success:hover{-moz-box-shadow:0px 0px 8px #65F4B5;-webkit-box-shadow:0px 0px 8px #65F4B5;box-shadow:0px 0px 8px #65F4B5;}.sm-btn-loading:hover{-moz-box-shadow:0px 0px 8px #65F4B5;-webkit-box-shadow:0px 0px 8px #65F4B5;box-shadow:0px 0px 8px #65F4B5;}.sm-btn-fail:hover{-moz-box-shadow:0px 0px 8px #F55742;-webkit-box-shadow:0px 0px 8px #F55742;box-shadow:0px 0px 8px #F55742;}.sm-btn-default .sm-ico,.sm-btn-loading .sm-ico,.sm-btn-success .sm-ico,.sm-btn-fail .sm-ico{position:relative;background:none;display:inline-block;margin-top:-3px;margin-left:12px;width:36px;height:36px;border-radius:50%;line-height:36px;text-align:center;vertical-align:middle;}.sm-btn-default .sm-ico-wave{width:26px;height:26px;border-radius:50%;animation:defaultWave 1.5s ease infinite;position:relative;z-index:800;left:5px;top:5px;}.sm-btn-loading .sm-ico-wave,.sm-btn-success .sm-ico-wave,.sm-btn-fail .sm-ico-wave{width:26px;height:26px;border-radius:50%;position:relative;z-index:800;left:5px;top:5px;}.sm-btn-default .sm-ico-wave,.sm-btn-loading .sm-ico-wave,.sm-btn-success .sm-ico-wave{background-image:linear-gradient(0deg,#3a9afa,#00de76);}.sm-btn-loading .shield,.sm-btn-default .shield,.sm-btn-success .shield,.sm-btn-fail .shield{width:12px;height:14px;line-height:38px;left:12px;position:absolute;z-index:1000;top:-1px;}.sm-btn-default .shield{animation:shieldanimation 1.5s infinite;}.sm-btn-default .out-silder-circle{position:absolute;width:36px;height:36px;background:#c3efe8;line-height:36px;border-radius:50%;text-align:center;vertical-align:middle;top:0;}.sm-btn-loading .out-silder-circle{position:absolute;width:36px;height:36px;background:linear-gradient(rgba(0,222,118,.8),rgba(0,222,118,.4),rgba(0,222,118,.3),rgba(0,222,118,.2));line-height:36px;border-radius:50%;text-align:center;vertical-align:middle;top:0px;}.sm-btn-default .out-silder-circle{animation:defaultOutsideWave 1.5s ease infinite;}.sm-btn-loading .out-silder-circle{animation:loadingWave 1s infinite;}.sm-btn-default .right-tick,.sm-btn-loading .right-tick{display:none;}.sm-btn-default .wrong-cross,.sm-btn-loading .wrong-cross,.sm-btn-success .wrong-cross{display:none;}.sm-btn-success .out-silder-circle,.sm-btn-fail .out-silder-circle{position:absolute;width:36px;height:36px;line-height:36px;border-radius:50%;text-align:center;vertical-align:middle;top:0;}.sm-btn-success .out-silder-circle{animation:successWave 1s infinite;animation-iteration-count:1;background:#c3efe8;}.sm-btn-success .sm-txt{color:#01BF8F;animation:successTxt 1s;animation-iteration-count:1;}.sm-btn-success .rect-top:before,.sm-btn-fail .rect-top:before{content:'';display:block;height:200%;position:absolute;top:0px;left:0px;}.sm-btn-success .rect-top:before{border-left:1px solid #00de76;animation:successRectLeft .5s;animation-iteration-count:1;}.sm-btn-success .rect-top,.sm-btn-fail .rect-top{position:absolute;top:0;left:0px;}.sm-btn-success .rect-top{animation:successRectTop 1s;animation-delay:.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-success .rect-top:after,.sm-btn-fail .rect-top:after{content:'';display:block;height:100%;position:absolute;top:-1px;right:0;}.sm-btn-success .rect-top:after{animation:successRectRight .5s;animation-delay:1.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-success .rect-bottom,.sm-btn-fail .rect-bottom{position:absolute;left:0px;}.sm-btn-success .rect-bottom{animation:successRectBottom 1s;animation-delay:.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-success .rect-bottom:after,.sm-btn-fail .rect-bottom:after{content:'';display:block;height:100%;position:absolute;top:1px;right:0;}.sm-btn-success .rect-bottom:after{animation:successRectBottomRight .5s;animation-delay:1.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-success .right-tick{position:absolute;width:8px;height:6px;display:block;top:18px;left:16px;z-index:2000;}.sm-btn-success .right-tick .right-tick-left,.sm-btn-success .right-tick .right-tick-right{position:absolute;height:1px;background:#00de76;}.sm-btn-success .right-tick .right-tick-left{transform:rotate(45deg);transform-origin:left top;top:-1px;left:-1px;animation:rightTickLeft .3s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-success .right-tick .right-tick-right{transform:rotate(315deg);transform-origin:left bottom;top:1px;left:1px;animation:rightTickRight .3s;animation-delay:.29s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .sm-ico-wave{background-image:linear-gradient(0deg,#FC3BAB,#F26216);}.sm-btn-fail .out-silder-circle{background:rgba(244,88,58,.25);animation:failWave 1s infinite;animation-iteration-count:1;}.sm-btn-fail .sm-txt{color:#F55742;animation:failTxt 1s;animation-iteration-count:1;}.sm-btn-fail .rect-top:before{border-left:1px solid #F55742;animation:failRectLeft .5s;animation-iteration-count:1;}.sm-btn-fail .rect-top{animation:failRectTop 1s;animation-delay:.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .rect-top:after{animation:failRectRight .5s;animation-delay:1.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .rect-bottom{animation:failRectBottom 1s;animation-delay:.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .rect-bottom:after{animation:failRectBottomRight .5s;animation-delay:1.5s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .right-tick{display:none;}.sm-btn-fail .wrong-cross{position:absolute;width:8px;height:6px;display:block;top:19px;left:16px;z-index:2000;}.sm-btn-fail .wrong-cross .wrong-cross-left,.sm-btn-fail .wrong-cross .wrong-cross-right{position:absolute;height:1px;background:#F55742;}.sm-btn-fail .wrong-cross .wrong-cross-left{transform:rotate(135deg);transform-origin:left bottom;top:-6px;left:4px;animation:wrongCrossLeft .3s;animation-iteration-count:1;animation-fill-mode:forwards;}.sm-btn-fail .wrong-cross .wrong-cross-right{transform:rotate(45deg);transform-origin:left top;top:-5px;left:0px;animation:wrongCrossRight .3s;animation-delay:.29s;animation-iteration-count:1;animation-fill-mode:forwards;}@keyframes shieldanimation{0%{transform:scale(1);}20%{transform:scale(1.15);}40%{transform:scale(1);}100%{transform:scale(1);}}@keyframes defaultWave{0%{transform:scale(1);}20%{transform:scale(1.23);}40%{transform:scale(1);}100%{transform:scale(1);}}@keyframes defaultOutsideWave{0%{transform:scale(1);}20%{transform:scale(0.8125);}40%{transform:scale(1);}100%{transform:scale(1);}}@keyframes loadingWave{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}@keyframes successWave{0%{background:none;}100%{background:#c3efe8;}}@keyframes successTxt{0%{color:#333333;}100%{color:#01BF8F;}}@keyframes successRectTop{0%{width:0;border-top:1px solid #00de76;}100%{width:100%;border-top:1px solid #00de76;}}@keyframes successRectLeft{0%{transform:scaleY(0);}100%{transform:scaleY(1);}}@keyframes successRectRight{0%{height:0;border-right:1px solid #00de76;}100%{height:104%;border-right:1px solid #00de76;}}@keyframes successRectBottom{0%{width:0;border-bottom:1px solid #00de76;}100%{width:100%;border-bottom:1px solid #00de76;}}@keyframes successRectBottomRight{0%{top:100%;border-right:1px solid #00de76;}100%{top:0px;border-right:1px solid #00de76;}}@keyframes failWave{0%{background:none;}100%{background:rgba(244,88,58,.25);}}@keyframes failTxt{0%{color:#333333;}100%{color:#F55742;}}@keyframes failRectTop{0%{width:0;border-top:1px solid #F55742;}100%{width:100%;border-top:1px solid #F55742;}}@keyframes failRectLeft{0%{transform:scaleY(0);}100%{transform:scaleY(1);}}@keyframes failRectRight{0%{height:0;border-right:1px solid #F55742;}100%{height:110%;border-right:1px solid #F55742;}}@keyframes failRectBottom{0%{width:0;border-bottom:1px solid #F55742;}100%{width:100%;border-bottom:1px solid #F55742;}}@keyframes failRectBottomRight{0%{top:100%;border-right:1px solid #F55742;}100%{top:1px;border-right:1px solid #F55742;}}@keyframes wrongCrossLeft{0%{width:0px;}100%{width:7px;}}@keyframes wrongCrossRight{0%{width:0px;}100%{width:7px;}}@keyframes rightTickLeft{0%{width:0px;}100%{width:3px;}}@keyframes rightTickRight{0%{width:0px;}100%{width:6px;}}</style><style type="text/css" class="nc-style">.nc-container #nc_1_wrapper{width:300px;height:34px;font-size:12px;line-height:34px;}.nc-container .nc_1_n1z{width:42px;}</style><script type="text/javascript">

    var requestInfo = {
        type: 'GET', // 'GET' 和 'POST'
        url: 'https://www.chictr.org.cn/searchproj.html', // 'https://www.taobao.com/detail'
        args: '',
        data: '', //a=1&b=2&c=3...
        token: 'd4adee6b-045e-4763-8d56-7e797659677d',
        refer: 'GbxiU0VAv7Waxo2BzwkWBN5ePtk=',
        headers: {},
    };


    function insertScripts(){
        var script = document.createElement('script');
        var time = new Date();
        var head = document.head || document.getElementsByTagName('head')[0];
        script.src = '//g.alicdn.com/AWSC/AWSC/awsc.js?t=' + (time.getFullYear()+(time.getMonth()+1)+time.getDate()+time.getHours());
        if ("onload" in script) {
            script.onload = function(){
                initNC();
            }
        } else {
            script.onreadystatechange = function() {
                if (/loaded|complete/.test(script.readyState)) {
                    initNC();
                }
            };
        }
        head.appendChild(script);
        //加载各自的css
        var style = document.createElement('style');
        style.type = "text/css";
        var css = '';
        if (_waf_is_mobile){
            css = '#waf_nc_h5_block{position:fixed;_position:absolute;width:100%;height:100%;top:0;bottom:0;left:0;z-index:9999}.waf-nc-h5-mask{background:#777;opacity:.5;filter:alpha(opacity=50);width:100%;height:100%}.waf-nc-h5-wrapper{width:94%;position:absolute;top:20%;left:50%;margin-top:-20%;margin-left:-47%;padding:5% 1%;background:#fff;border-radius:3px;box-sizing:border-box}.waf-nc-h5-panel{width:100%;text-align:center}.waf-nc-h5-icon{margin:0 auto}.waf-nc-h5-description{margin-top:40px;font-size:14px;color:#595959}#traceid{text-align:center;margin-top:500px!important;font-size:12px;color:#999}.nc-container{margin-top:30px}.nc_bg{background:#fff3ea!important}.btn_slide{background:#ff6a00!important;border:0!important;color:#fff!important;width:48px!important;height:48px!important;font-size:30px;font-weight:900!important;line-height:48px!important}.btn_ok{background:#ff6a00!important;border:0!important;color:#fff!important;width:48px!important;height:48px!important;font-size:30px;font-weight:900!important;line-height:48px!important}.nc_scale{background:rgba(241,241,242,1)!important;height:48px!important}.nc-lang-cnt{height:48px!important;margin-left:10px!important;line-height:48px!important;font-size:14px!important}.nc_1_nocaptcha{width:300px!important;height:48px!important;margin:auto!important;left:0!important;right:0!important}'
        }else{
            css = '.head{position:relative;height:70px;padding-left:25px;border-bottom:1px solid #ebecec}.content{width:1000px;min-height:250px;margin-top:164px!important;margin-left:auto;margin-right:auto}.left{width:300px;height:198px;float:left;background:url(https://img.alicdn.com/imgextra/i1/O1CN01L12MaQ1ZwfYKk7Yrc_!!6000000003259-2-tps-900-594.png) no-repeat;background-size:cover}.right{margin-left:250px;padding-left:140px}.contentbg{width:100%;min-height:250px}.right p{font-size:14px;color:#333;line-height:25px;height:25px;text-align:left}#nocaptcha{margin-top:40px;margin-left:5px;width:300px!important}#nocaptcha .nc-lang-cnt{color:#fff}#nocaptcha .clickCaptcha_text .nc-lang-cnt{color:#333}#traceid{margin-left:250px!important;padding-left:140px!important;font-size:14px;color:rgba(153,153,153,1)}.nc_bg{background:#fff3ea!important}.btn_slide{background:#ff6a00!important;border:0!important;color:#fff!important;width:48px!important;height:48px!important;font-size:30px;font-weight:900!important;line-height:48px!important}.btn_ok{background:#ff6a00!important;border:0!important;color:#fff!important;width:48px!important;height:48px!important;font-size:30px;font-weight:900!important;line-height:48px!important}.nc_scale{background:rgba(241,241,242,1)!important;height:48px!important}.nc-lang-cnt{height:48px!important;margin-left:10px!important;line-height:48px!important;font-size:14px!important}.nc_1_nocaptcha{width:300px!important;height:48px!important}'
        }
        try {
            style.appendChild(document.createTextNode(css));
        }catch(e){
            style.styleSheet.cssText = css;
        }
        var head = document.head || document.getElementsByTagName('head')[0];
        head.appendChild(style);
    }

    insertScripts();

    function parseURL(url) {

        var search_index = url.indexOf('?'),
            hash_index = url.indexOf('#');

        var base, search, hash;

        try{
            if (search_index < 0 || (hash_index > -1 && search_index > hash_index)){
                if (hash_index < 0){
                    base = url;
                    search = '';
                    hash = '';
                }else{
                    base = url.slice(0, hash_index);
                    search = '';
                    hash = url.slice(hash_index, url.length);
                }

            }else{
                if (hash_index < 0){
                    base = url.slice(0, search_index);
                    search = url.slice(search_index, url.length);
                    hash = '';
                }else{
                    base = url.slice(0, search_index);
                    search = url.slice(search_index, hash_index);
                    hash = url.slice(hash_index, url.length);
                }
            }
        }catch(e){
            base = url;
            search = '';
            hash = '';
        }


        return {
            base: base,
            search: search,
            hash: hash,
            original: url
        }

    }

    function parseQuery(qstr) {
        if (qstr.charAt(0) != '?') {
            return {};
        }
        var query = {};
        var a = qstr.substr(1).split('&');
        for (var i = 0; i < a.length; i++) {
            var b = a[i].split('=');
            console.log(decodeURIComponent(b[0]))
            if (decodeURIComponent(b[0]) !== 'u_asec'){
                query[decodeURIComponent(b[0])] = decodeURIComponent(b[1] || '');
            }

        }
        return query;
    }

    function addQuery(query, data) {
        var qdata = parseQuery(query);
        var rt = '?';
        for (var i in data) {
            qdata[i] = data[i];
        }
        for (var i in qdata) {
            rt += encodeURIComponent(i) + '=' + encodeURIComponent(qdata[i]) + '&';
        }
        rt = rt.substr(0 , rt.length - 1);
        return rt;
    }

    function combineUrl(parsedUrl) {
        return parsedUrl.base + parsedUrl.search + parsedUrl.hash;

    }

    function parseFormQuery(qstr) {
        if (qstr.length === 0 || qstr.indexOf('=') < 0){
            return [];
        }

        var formItems = [];
        var a = qstr.split('&');
        for (var i = 0; i < a.length; i++) {
            var b = a[i].split('=');
            var str = '<input type="hidden" name="' + b[0] + '" value="' + b[1] + '" />'
            formItems.push(str);
        }
        return formItems;
    }

    function reform(data) {
        var form = document.createElement('form');
        var parsedUrl = parseURL(requestInfo.url);
        parsedUrl.search = addQuery(parsedUrl.search,data)
        var newUrl = combineUrl(parsedUrl);
        form.action = newUrl;
        form.method = "POST";
        form.innerHTML = parseFormQuery(requestInfo.data).join('');
        document.body.appendChild(form);
        form.submit();
        // document.body.appendChild(form);
    }

    var NC_Opt = {
        renderTo: "nocaptcha",//渲染到DOM ID
        appkey: "CF_APP_WAF", // 应用标识
        scene: "register",
        trans: {"key1": "code100", "user": "default"},
        token: requestInfo.token,//umid token
        language: "cn",//语言包，默认中文
        isEnabled: true,
        times: 3,
        success: function (data) {
            document.getElementById("nc_1_n1z").innerHTML='✓'
            document.getElementsByClassName('nc-lang-cnt')[0].innerHTML='<b style="margin-left:60px;-webkit-text-fill-color:#FF6A00 !important">验证成功！</b>'

            if (requestInfo.type === 'GET'){
                var d = {
                    u_atoken: data.token,
                    u_asession: data.sessionId,
                    u_asig: data.sig,
                    u_aref: requestInfo.refer
                };
                // location.href = requestInfo.url + addQuery(requestInfo.data, d);
                var parsedUrl = parseURL(requestInfo.url);
                parsedUrl.search = addQuery(parsedUrl.search,d)
                // location.href = combineUrl(parsedUrl);
                location.replace(combineUrl(parsedUrl));
            }else{
                var d = {
                    u_atoken: data.token,
                    u_asession: data.sessionId,
                    u_asig: data.sig,
                    u_aref: requestInfo.refer
                };
                reform(d);
            }
        },
        // 滑动验证失败时触发该回调参数。
        fail: function (failCode) {
            window.console && console.log(s);
        },
        // 验证码加载出现异常时触发该回调参数。
        error: function (errorCode) {
            window.console && console.log(errorCode)
        }
    };
    var NC_h5_Opt = {
        renderTo: "h5_nocaptcha",//渲染到DOM ID
        appkey: "CF_APP_WAF", // 应用标识
        scene: "register_h5",
        trans: {"key1": "code200", "user": "default"},
        token: requestInfo.token,//umid token
        language: "cn",//语言包，默认中文
        isEnabled: true,
        times: 3,
        success: function (data) {
            document.getElementById("nc_1_n1z").innerHTML='✓'
            document.getElementsByClassName('nc-lang-cnt')[0].innerHTML='<b style="margin-left:60px;-webkit-text-fill-color:#FF6A00 !important">验证成功！</b>'
            if (data.token === undefined) data.token = requestInfo.token;
            if (requestInfo.type === 'GET'){
                var d = {
                    u_atoken: data.token,
                    u_asession: data.sessionId,
                    u_asig: data.sig,
                    u_aref: requestInfo.refer
                };
                // location.href = requestInfo.url + addQuery(requestInfo.data, d);
                var parsedUrl = parseURL(requestInfo.url);
                parsedUrl.search = addQuery(parsedUrl.search,d)
                // location.href = combineUrl(parsedUrl);
                location.replace(combineUrl(parsedUrl));
            }else{
                var d = {
                    u_atoken: data.token,
                    u_asession: data.sessionId,
                    u_asig: data.sig,
                    u_aref: requestInfo.refer
                };
                reform(d);
            }
        },
        // 滑动验证失败时触发该回调参数。
        fail: function (failCode) {
            window.console && console.log(s);
        },
        // 验证码加载出现异常时触发该回调参数。
        error: function (errorCode) {
            window.console && console.log(errorCode)
        }
    };

    function initNC() {
        if (window._waf_is_mobile){
            document.getElementById('H5').style.display = 'block';
            // NoCaptcha.init(NC_h5_Opt);
            // NoCaptcha.setEnabled(true);
            AWSC.use("nc", function (state, module) {
                window.nc = module.init(NC_h5_Opt);
            })
        }else{
            document.getElementById('PC').style.display = 'block';
            // var nc = new noCaptcha(NC_Opt);
            AWSC.use("nc", function (state, module) {
                window.nc = module.init(NC_Opt);
            })
        }
    }
</script>


</body>